/*
 * Created on 12-Jul-06 Filename: IllegalServerStateException.java @author
 * Daniel Yule
 */
package com.danicsoft.daide.serverclient;

/**
 * A server throws this if it recieves a request that it is not in a state to
 * recieve. For example, recieving a NOW command before the start of the game.
 * 
 * @author Daniel Yule (daniel.yule@gmail.com)
 * @version 1.0
 */
public class IllegalServerStateException extends Exception {

	/**
	 * Creates a new Exception for the specified server.
	 * 
	 * @param server
	 *        The server whose state is invalid.
	 */
	public IllegalServerStateException(DaideServer server) {
		super("Server was in an invalid state: " + server.getState());
	}
}
